package cn.wecloud.im.multiplayervideodemo.http

import cn.wecloud.im.multiplayervideodemo.http.model.BaseHttpRes
import cn.wecloud.im.multiplayervideodemo.http.model.MultiMeetSignReq
import cn.wecloud.im.multiplayervideodemo.http.model.SignReq
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.POST

interface CommonService {

    /*
    验证场景 1-用户注册 2-重置密码验证 3-更换手机号绑定
     */
    companion object {
        const val VERIFY_TYPE_REGISTER = 1
        const val VERIFY_TYPE_CHANGE_PWD = 2
        const val VERIFY_TYPE_CHANGE_PHONE = 3
    }


    @POST("signDemo/get")
    fun getSign(@Body req: SignReq): Observable<String>

    /**
     * 获取多人音视频专用sign
     */
    @POST("multiMeet/getSign")
    fun getMultiMeetSign(@Body req: MultiMeetSignReq): Observable<BaseHttpRes<String>>
}